package com.swh;

import com.alibaba.excel.EasyExcel;
import com.swh.dao.SysAreaDao;
import com.swh.entity.SysArea;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @Author: swh
 * @Description:
 * @Date: 2020/12/24 18:27
 * @Version: 1.0
 */
public class test2 {

    @Autowired
    SysAreaDao sysAreaDao;


    @Test
    public void Write() {
        EasyExcel.write("E:\\java46\\area.xlsx", SysArea.class)
                .sheet("区域管理").doWrite(sysAreaDao.findAll2());
    }

}
